<%@ page language="java" import="java.util.*, model.*" pageEncoding="ISO-8859-1"%>

<%@page import="bean.PollUser"%>
<%@page import="bean.Poll"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String title = "Home";
	
	ArrayList pa = new ArrayList();
	
	pa = PCmasterImpl.showPollInfo();
	
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>   
    <title>Report</title>
    <h1>Report</h1>
  </head>
  
  <body>
    <div class='clearboth'></div>
			<div id="PollAdmin">
			
			 <table border="1" Width="100%" cellpadding="0" cellspacing="0" color="red" >
				<thead>
				<tr id="row1" align="left">
				<th>ID</th>
				<th>Version</th>
				<th>Description</th>
				<th>Latitude</th>
				<th>Longitude</th>
				<th>CreateTime</th>
				<th>CreatorName</th>
				<th>MasterName</th>
				<th>Attendance</th>
				</tr>
				</thead>
				
				
				<tbody>
				
				<%
									for (int i = 0; i < pa.size(); i++) {
									
										Poll pb = (Poll) pa.get(i);
								%>
				
				<tr>		
				<td><%=pb.getId()%></td>
				<td><%=pb.getVersion()%></td>	
				<td><%=pb.getDescription()%></td>
				<td><%=pb.getLatitude()%></td>
				<td><%=pb.getLongitude()%></td>
				<td><%=pb.getCreatetime()%></td>
				<td><%=pb.getCreator()%></td>
				<td><%=pb.getMaster()%></td>
				<td><%=pb.getAttendance()%></td>				
				
				</tr>
				
				<%
					}

						
				%>
			
		
				</tbody>
			</table> 		
		</div >		
	</body>
</html>